<?php /* Smarty version 2.6.18, created on 2016-12-30 09:59:26
         compiled from notice/common.details.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">	
                <div class="box-header with-border">
                    <h4 class="text-center" style="font-family:'<?php echo $this->_tpl_vars['style_data']['style_typeface']; ?>
';font-size:<?php echo $this->_tpl_vars['style_data']['style_number']; ?>
;font-weight:<?php echo $this->_tpl_vars['style_data']['style_overstriking']; ?>
;font-style:<?php echo $this->_tpl_vars['style_data']['style_italic']; ?>
;color:<?php echo $this->_tpl_vars['style_data']['style_color']; ?>
"><?php echo $this->_tpl_vars['notice_data']['notice_title']; ?>
</h4>
					
                </div>
                <div class="box-body">
					<?php if ($this->_tpl_vars['notice_data']['department_id'] == ""): ?>
						<div class="col-md-6">
							<p class="text-right">发布人：<span><?php echo $this->_tpl_vars['notice_data']['staff_name']; ?>
</span></p>
						</div>
					<?php else: ?>
						<div class="col-md-6">
							<p class="text-right">发布部门：<span><?php echo $this->_tpl_vars['notice_data']['department_name']; ?>
</span></p>
						</div>
					<?php endif; ?>
                    <div class="col-md-6">
					    <p class="text-left">发布时间：<span><?php echo $this->_tpl_vars['notice_data']['start_time']; ?>
</span></p>
					</div>
								
					<div>
					   <p><?php echo $this->_tpl_vars['notice_data']['notice_content']; ?>
</p>
					   <p>附件：<a href="index.php?a=notice.output&notice_file=<?php echo $this->_tpl_vars['notice_data']['notice_file']; ?>
"><?php echo $this->_tpl_vars['notice_data']['notice_file']; ?>
</a></p>
					</div>
					<hr/>
					<p style="color:#333;">阅读记录列表（红色：未阅读用户）</p>
					<table class="table table-bordered table-striped" id="mytable">
                      <thead>
					    <tr>
						    <td>部门</td>
							<td>阅读用户</td>
						</tr>
                       </thead>
						<tr>
						    <td>老师</td>
							<td>
							<?php $_from = $this->_tpl_vars['staff_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
								<?php if ($this->_tpl_vars['value']['is_read'] == 1): ?>
									<span ><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</span>，
								<?php else: ?>
									<span style="color:red;"><?php echo $this->_tpl_vars['value']['staff_name']; ?>
</span>，
								<?php endif; ?>
							<?php endforeach; endif; unset($_from); ?>	
							
							</td>
						</tr>
						<tr>
						    <td>学生</td>
							<td>
							<?php $_from = $this->_tpl_vars['student_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
								<?php if ($this->_tpl_vars['value']['is_read'] == 1): ?>
									<span ><?php echo $this->_tpl_vars['value']['student_name']; ?>
</span>，
								<?php else: ?>
									<span style="color:red;"><?php echo $this->_tpl_vars['value']['student_name']; ?>
</span>，
								<?php endif; ?>
							<?php endforeach; endif; unset($_from); ?>	
							
							</td>
						</tr>
					</table>
				</div><!--box-body -->
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  <!--弹出框-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
         <form action="" method="post">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">期末学生评语</h4>
              </div>
              <div class="modal-body">
                    学号：<span id = "bbb"></span>  <span style="margin-left:20px;">姓名：</span><span id="ming"></span>
                    <div class="form-group" style="margin-top:16px;">
                        <p>评语内容:</p>
                        <textarea class="form-control" rows="3" name="message_content" id="fff"></textarea>
                    </div>
                    <div class="form-group" style="margin-top:16px;">
                        <p>附件：</p><input type="file" multiple="multiple">     
                    </div>
              </div>
              <div class="modal-footer center-block">
			    <input type="hidden" name="message_id" value="" id="ddd">
			    <input type="hidden" name="student_id" value="" id="ccc">
                <button type="submit" class="btn btn-primary">确 定</button>
              </div>
          </form>
    </div>
  </div>
</div>
<!-- ./wrapper -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript">
	$(document).ready(function(){
		$("#ming").hide();			
		$("#cang").click(function(){
			$("#ming").show();
			$("#cang").hide();
		});
	});
</script>